package com.act.dto;

import java.io.Serializable;

/**
 * 分页DTO
 */
public class PagerDTO implements Serializable {

    /* 页索引 */
    private int pageIndex;
    /* 页容量 */
    private int pageSize;
    /* 开始索引 */
    private int startIndex;
    /* 结束索引 */
    private int endIndex;

    public int getStartIndex() {
        return (pageIndex - 1) * pageSize;
    }

    public int getEndIndex() {
        return pageSize;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public PagerDTO() {
    }
}
